home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000083_news@columbia.edu _Sun Oct 22 14:39:49 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id OAA13888
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Sun, 22 Oct 2000 14:39:48 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA00306
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 22 Oct 2000 14:39:48 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA01505
  10.     for kermit.misc@watsun.cc.columbia.edu; Sun, 22 Oct 2000 14:25:42 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: ckermit: keep alive
  14. Date: 22 Oct 2000 18:25:39 GMT
  15. Organization: Columbia University
  16. Message-ID: <8svbf3$1eu$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <AVFI5.1014$g71.42266@news3.voicenet.com>,
  20. Christopher Mosley  <cmosley@voicenet.com> wrote:
  21. : Is there a way to keep a serial connection alive using ckermit.
  22. : Is there a way to output characters when in the connect mode
  23. : without running a backround process on the machine you are connected
  24. : to... 
  25. :
  26. K95 has a nice way of doing this since it runs in multiple threads
  27. (something not practical for C-Kermit since threads are not portable
  28. enough): 
  29.  
  30.   set terminal idle-send <sec> <string>
  31.  
  32. e.g. "set term idle 300 { }", which sends a space every 300 seconds if
  33. you don't touch the keyboard.
  34.  
  35. : I can see using a backround process that periodically uses
  36. : apc escape sequence to output a character, but I have used backround
  37. : proccesses with "sleeps" before and my isp started looking at the files
  38. : in my account - they thought it was indicative of a ping attack and
  39. : generally suspicious.
  40. :  
  41. : Is my only real option to run a script from the command line?     
  42. If you're trying to prevent the situation in which you leave C-Kermit in
  43. CONNECT mode and walk away for half an hour, and the host logs you out
  44. because of idle time, C-Kermit can help you if you remember to escape back
  45. from CONNECT mode before walking away and running a little script like:
  46.  
  47.   define BUSYWAIT {
  48.       echo Press any key to continue...
  49.       set ask-timer 2
  50.       while true {
  51.       for \%i 1 15 1 {
  52.           getc \%c
  53.           if success {
  54.                   set ask-timer 0
  55.                   echo Continuing...
  56.                   end 0
  57.               }
  58.       }
  59.       output \N
  60.       }
  61.   }
  62.  
  63. This sends a NUL (which should be harmless) every 30 seconds until you press
  64. a key (there might be up to a 2-second delay after you press key before it
  65. responds).  Take this one step further by putting the definition in your
  66. C-Kermit customization file, where you would also:
  67.  
  68.   define myconnect connect, busywait
  69.  
  70. and then use MYCONNECT instead of CONNECT to enter CONNECT mode.  Then
  71. whenever you escape back fronm CONNECT mode, it executes the BUSYWAIT macro
  72. automatically.
  73.  
  74. - Frank